<template>
  <view>
		<view class="tui-actionsheet"  :class="[show ? 'tui-actionsheet-show' : '']">
			<view class="regional-selection">
				<view class="specs">
				    <view class="specs-top">
				        <view style="font-size: 35rpx;font-weight: bold">{{shopInfo.storage_shop_name}}</view>  
				        <view style="border-bottom: 11rpx solid #f3f3f3;"></view>    
				    </view>				
				    <view class="flex specs-top-title" style="font-size: 30rpx;">公告</view>
				    <view  class="specs-top-desc mt-10" v-if="!shopInfo.shop_intro">商家暂无公告</view>
				    <view  class="specs-top-desc mt-10 mr-25" v-else-if>{{shopInfo.shop_intro}}</view>
				    <view class="specs-top-title" style="font-size: 30rpx;">店铺信息</view>
				    <view class="specs-top-desc" style="font-size: 25rpx;">
					    <view class="flex mt-10">营业时间：{{shopInfo.shop_time}}</view>
				    	<view class="flex mt-10">营业电话：{{shopInfo.link_phone}}</view>
					    <view class="flex localtion mt-10">
						    <view class="flex" style="margin-left: -5rpx;">门店地址：{{shopInfo.province}}{{shopInfo.city}}{{shopInfo.area}}{{shopInfo.address}}</view>
							<view class="localtion" style="margin-left: 60rpx;">
							  <view style="margin-top: -10rpx;"><van-icon name="location-o" info="导航" bind:click="openMap" size="24px" /></view>
							  <view style="margin-top: -10rpx;margin-left: 60rpx;"><van-icon name="phone-o"  size="24px" bindtap="tapMakePhoneCall" /></view>
							</view>
					    </view>				       
				    </view>				    
				</view>			
			</view>
		</view>
		<!-- 遮罩层 -->
		<view  class="tui-actionsheet-mask"  :class="[show ? 'tui-mask-show' : '']"	  @tap="handleClickMask"></view>
  </view>
</template>
 
<script>
export default {
  // name: "tuiActionsheet",
  props: {
    //点击遮罩 是否可关闭
    maskClosable: {
      type: Boolean,
      default: true,
    },
    //显示操作菜单
    show: {
        type: Boolean,
        default: false,
       },
    },
	data(){
		return{
			shopInfo:{}
		}
	},
	created() {
		this.shopInfo = uni.getStorageSync('shopInfo')
	},
    methods:  {
		handleClickMask() {
			 this.$emit("chooseCancel",{type:1});
		},   
    },
};
</script>
 
<style scoped lang="less">
.tui-actionsheet {
  width: 100%;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  visibility: hidden;
  transform: translate3d(0, 100%, 0);
  transform-origin: center;
  transition: all 0.3s ease-in-out;
  // background: #eaeaec;
  min-height: 100rpx;
}
 
.tui-actionsheet-show {
  transform: translate3d(0, 0, 0);
  visibility: visible;
}
.regional-selection {
    text-align: center;
  height: 415rpx;
  background: #fff;
}
.tui-actionsheet-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9996;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
}
 
.tui-mask-show {
  opacity: 1;
  visibility: visible;
}


/* component/specs/index.wxss */

.specs-top-desc{
  display: flex;
  flex-direction: column;
  font-size: 25rpx;
  margin-left: 35rpx;
  color: gray;
  
}

.specs-top-title{
  display: flex;
  flex-direction: row;
  justify-content: left;
  font-size: 25rpx;
  margin-left: 35rpx;  
  margin-top: 25rpx;
  
}

.localtion{
  display: flex;
  flex-direction: row;
  color: gray;
}

.specs-top{
  display: flex;
  flex-direction: row;
  font-size: 23rpx;
  justify-content: center;
  align-items: center;
  padding-bottom: 10rpx;
  border-bottom: 1rpx solid rgb(240, 235, 235);

 
}


</style>